// 护驾默认为敌人数据的种族。
CP.PetManager.loadPetLevelAndClass = function(){
	for(var i = 1; i < $dataEnemies.length; i++){
		var pet = $dataEnemies[i];
		pet.petClassId = pet.classId;   //默认改为敌人种族
		pet.classAffectParam = false;
		pet.initLevel = 1;
		pet.petMaxLevel = CP.PetManager.MAX_PET_LEVEL;
		pet.petAutoBattle = CP.PetManager.PET_AUTO_BATTLE;
		
		if(pet.meta["Pet Class"])
			pet.petClassId = Number(pet.meta["Pet Class"]) || 0;
		if(pet.petClassId > 0 && pet.meta["Pet Class Affect Param"])
			pet.classAffectParam = true;

		if(pet.meta["Pet Init Level"])
			pet.initLevel = Number(pet.meta["Pet Init Level"]) || 0;
		if(pet.meta["Pet Max Level"])
			pet.petMaxLevel = Number(pet.meta["Pet Max Level"]) || 0;
		if(pet.meta["Pet Auto Battle"])
			pet.petAutoBattle = true;
	}
};
